	.file	"mt_a.c"
	.text
	.globl	sum
	.type	sum, @function
sum:
.LFB24:
	.cfi_startproc
	endbr64
	movl	$10000000, %eax
.L2:
	lock addl	$1, a(%rip)
	subl	$1, %eax
	jne	.L2
	movl	$0, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	sum, .-sum
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"a = %d\n"
	.text
	.globl	test
	.type	test, @function
test:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	xchgl	a(%rip), %eax
	leaq	8(%rsp), %rdi
	movl	$0, %ecx
	leaq	sum(%rip), %rbx
	movq	%rbx, %rdx
	movl	$0, %esi
	call	pthread_create@PLT
	leaq	16(%rsp), %rdi
	movl	$0, %ecx
	movq	%rbx, %rdx
	movl	$0, %esi
	call	pthread_create@PLT
	movl	$0, %esi
	movq	8(%rsp), %rdi
	call	pthread_join@PLT
	movl	$0, %esi
	movq	16(%rsp), %rdi
	call	pthread_join@PLT
	movl	a(%rip), %edx
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	movl	$0, %eax
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L7
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.size	test, .-test
	.globl	main
	.type	main, @function
main:
.LFB26:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	call	test
	call	test
	call	test
	movl	$0, %eax
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE26:
	.size	main, .-main
	.globl	a
	.bss
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
